<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\User */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="user-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'username')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'password')->passwordInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'showname')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'ordernumber')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'tellphone')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'worktime')->dropDownList([ '大夜班' => '大夜班', '晚班' => '晚班', '早班' => '早班', ], ['prompt' => '']) ?>

    <?= $form->field($model, 'job')->dropDownList($job_options) ?>

    <?= $form->field($model, 'status')->dropDownList([ '在职' => '在职', '离职' => '离职', ], ['prompt' => '']) ?>

    <div class="form-group">
        <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
